#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo02.py
@time:2022/05/14
"""
import sys

from parsel import Selector

def test01():
    ...
    content = ""
    print(content)

    age = 21
    print(type(age), id(age), age)

    kop = '''空啊啥的saladskop莫拉莱斯说'''

    print(kop)

    name = '张三'

    print(name * 5)


def test02():
    ...
    # 下面显示的是 unicode
    content = "啊啥的哈师大的撒的"
    # 把unicode转成utf8编码
    result = content.encode("utf8")
    print(result)
    print(result.decode("utf8"))

    print(sys.getrefcount(result))

    person = {
        'name': '张三',
        'age': 21
    }

    for [index, val] in enumerate(person):
        print(index, val)


class Person:
    ...

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def say(self):
        print(f'{self.age}-{self.name}')


if __name__ == '__main__':
    pass
    # test02()
    print(Person.__dict__)
    name = '11'
    print(type(name))
    # say = Person.say
